package tgc.edu.yzy.entity;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import tgc.edu.yzy.custom.CommonEntityId;
@Entity
public class Record extends CommonEntityId{
	private String name;//操作人姓名
	private String content;//操作主题
	private String operation;//操作内容
	private String ip;//登录人IP
	private String time;//操作时间
	private Book book;//操作的书本
	private User user;//操作的
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getOperation() {
		return operation;
	}
	public void setOperation(String operation) {
		this.operation = operation;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	@ManyToOne
	public Book getBook() {
		return book;
	}
	public void setBook(Book book) {
		this.book = book;
	}
	@ManyToOne
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	
}
